//
//  DYIdentification.h
//  Stormbills
//
//  Created by 帝云科技 on 2018/7/9.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^DYIdentificationBlock)(NSDictionary *result);

@interface DYIdentification : NSObject


/**
 身份证识别
 
 @param image 身份证图片
 @param type 1 正面 2反面 默认1
 @param completion 请求完成回调
 */
+ (void)identificationIdCardImage:(UIImage *)image
                             type:(NSString *)type
                       completion:(DYIdentificationBlock)completion;


/**
 银行卡识别
 
 @param image 银行卡照片
 @param completion 请求完成回调
 */
+ (void)identificationBankImage:(UIImage *)image
                     completion:(DYIdentificationBlock)completion;

@end
